﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using System.Collections.ObjectModel;
using System.Windows.Resources;
using System.Windows.Markup;
using System.IO;

namespace WPAChess
{
    public partial class SettingPage : PhoneApplicationPage
    {
        public SettingPage()
        {
            InitializeComponent();
 
        }

    }
    //can cai thien doan chuong trinh duoi
    public class MiniBoard
    {
        public MiniChessBoard miniBoard
        {
            get;
            set;
        }

        public MiniBoard(MiniChessBoard board)
        {
            this.miniBoard = board;
        }
    }

    public class MiniBoards : ObservableCollection<MiniBoard>
    {
        public MiniBoards()
        {
            MiniChessBoardFactory boardFac = new MiniChessBoardFactory();
            for (int i = 0; i < 4; ++i)
            {
                MiniChessBoard board = boardFac.CreateMiniChessBoard(i);
                if (board != null)
                {
                    Add(new MiniBoard(board));
                }
            }
        }
    }
}
